<!DOCTYPE html>
<html lang="en">
<head>
  <{include file="public_html/header_tag.html"}>
    <title>直播课</title>

</head>
<body>
<div class="wrap">
	<!--star header-->
    <div class="header">
		<{include file="public_html/header_menu.html"}>
    </div>
	<!--end  header-->

  <div class="return_nav">
    <div class="w1200">
      您的位置：<a href="/">首页</a><span>&gt;</span><em>直播课</em>
      </div>
  </div>
<!--star main-->
  <div class="wrap_main fix">
      <!--content star-->
      <div class="col_main">
        <div class="c_left l">
            <div class="mu fix fs16 LH50 b-f5f5f5 line-all m-r15">
                <ul class="fix wList00 ucFilter">
                    <a href="/live/index/0/">
                        <li <{if $live_status == 0}>class="selected"<{/if}>><span class="tit">全部</span></li>
                    </a>
                    <a href="/live/index/1/">
                        <li <{if $live_status == 1}>class="selected"<{/if}>><span class="tit">即将直播</span></li>
                    </a>
                    <a href="/live/index/2/">
                        <li <{if $live_status == 2}>class="selected"<{/if}>><span class="tit">正在直播</span></li>
                    </a>
                    <a href="/live/index/3/">
                        <li <{if $live_status == 3}>class="selected"<{/if}>><span class="tit">往期直播</span></li>
                    </a>
                </ul>
            </div>
            <ul class="wList33 list260190 mc fix p-t20">
            <{foreach from = $live_list item=item}>
            <li>
              <dl class="line-all">
                <dt class="img260190"><a href="/live/detail/<{$item.id}>"><img src="<{$item.course_img}>"></a></dt>
                  <dd class="fs14 p-lr20">
                    <div class="fs16 h20 oh"><{$item.title}></div>
                      <div>开课时间：<{$item['start_time']|date_format:'%Y-%m-%d %H:%M:%S'}></div>
                      <div class="c-999999 p-t10 LH20">
                        <p>主讲老师：<{$item.teacher_name}></p>
                          <p>价格：<span class="c-FF0000">¥<{$item.price}></span></p>
                      </div>
                  </dd>
              </dl>
            </li>
            <{/foreach}>
            </ul>
            <div class="pages p-tb20">
                <{$pagination}>
            </div>
        </div>
        <div class="c_right r">
              <!-- 直播公告 star-->
                <div class="mtcBox">
                      <div class="mt"><h2 class="l p-r10"><img src="/static/www/img/ico_2525_tip.png"><span class="p-l20 fs16">直播公告</span></h2></div>
                      <{if isset($zhibo) }>
                      <div class="mc LH30 live_notice p15">
                          <div class="n_info" style="padding:0 32px;">
                              <div class="p-tb5"><a class="img260190" href="/live/detail/<{$zhibo['id']}>"><img src="<{$zhibo['course_img']}>"></a></div>
                              <div><span class="fs14"><{$zhibo['title']}></span><a class="btn r" href="javascript:;"> <{if $zhibo['live_status']==1}>
                                未开始
                                <{elseif $zhibo['live_status']==2}>
                                直播中
                                <{else}>
                                已结束
                                <{/if}></a></div>
                              <div class="c-999999 LH20 p-t5 c">
                                  <p><span class="c-ff763f r">&yen;<em class="fs18"><{$zhibo['price']}></em></span></p>
                                  <p>讲师：<{$zhibo['teacher_name']}></p>
                              </div>
                              <div class="c-999999 LH20 p-t5 c">
                                开始：<{$zhibo[ 'start_time']|date_format: '%Y-%m-%d %H:%M:%S'}><br />
                                                                    结束：<{$zhibo[ 'end_time']|date_format: '%Y-%m-%d %H:%M:%S'}>
                              </div>
                              <div class="c-29a7de">课程收益</div>
                              <div class="c-666666 LH20 oh"><{$zhibo.learn_what}></div>
                          </div>
                          <div class="n_btn tac p-t15 m-t10">
                              <a style="padding:5px 30px;" href="/live/detail/<{$zhibo['id']}>" target="_blank">立即学习</a>
                          </div>
                      </div>
                      <{/if}>
                  </div>
              <!-- 直播公告 end-->
              </div>
        </div>
  </div>
<div class="footer b-FFFFFF">
<{include file="public_html/footer.html"}>
</div>
</div>
</body>
<script type="text/javascript">
var is_login = "<{$user_data.id|default:0}>";
function focus_teacher(id){
  if(is_login > 0){
    $.ajax({
    type: "POST",
    url:  "/live/focus_teacher",
    data: "id="+id,
    async: false,
    dataType: "json",
    success: function(data){
        if(data == 1){
          $("#guanzhu_"+id).text('已关注');
        }
        if(data == 2){
          $("#guanzhu_"+id).text('关注');
        }
      }
    });
  }else{
    alert("请先登录");
  }
  
}
</script>
</html>
